package com.thinkgem.jeesite.modules.search.core;

import java.util.ResourceBundle;

import com.thinkgem.jeesite.modules.search.core.service.SearchService;
import com.thinkgem.jeesite.modules.search.core.service.impl.LuceneSearchServiceImpl;
/**
 * 
 * @Title:AndmobiSearcher
 * @description:获取搜索服务类
 * @author 赵俊夫
 * @date 2014-7-16 下午8:38:43
 * @version V1.0
 */
public class AndmobiSearcher {
	private static ResourceBundle bundle = null;
	private static volatile SearchService searchService = null;
	private static String searcher = null;
	
	static{
		try{
			bundle = java.util.ResourceBundle.getBundle(SearchGlobal.configFile);
		}catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public static SearchService getService(){
		if(searchService==null){
			searchService = new LuceneSearchServiceImpl();
		}
		return searchService;
	}
}
